import request from '@/utils/request';

export const requfindTablePages = (data) => request({ url: '/table/findTable/page', method: 'post', data });

export const reqaddTables = (data) => {
    if (data.id) {
        return request({ url: '/table/update/Table', method: 'put', data });
    } else {
        return request({ url: '/table/addTables', method: 'post', data });
    }
}


//request({url:'/table/addTables',method:'post',data});
export const reqtuifang = (id) => request({ url: `/table/tuifang/${id}`, method: 'get' });


export const reqdeleteTable = (id) => request({ url: `/table/deteleTable/${id}`, method: 'get' });